package com.ruoyi.car.mapper.carmanage;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.car.pojo.TbCarType;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TbCarTypeMapper extends BaseMapper<TbCarType> {

    /**
     * 查询所有
     */
    public List<TbCarType> findAll(TbCarType tbCarType);

    /**
     * 根据id查询
     */
    public TbCarType selectTbCarTypeById(@Param("id")Long id);

    /**
     * 新增
     */
    public int insertTbCarType(TbCarType tbCarType);

    /**
     * 修改
     */
    public int updateTbCarType(TbCarType tbCarType);

    /**
     * 删除
     */
    public int deleteTbCarTypeById(@Param("id") Long id);

    /**
     * 批量删除
     */
    public int deleteTbCarTypeByIds(String[] ids);
}
